-- GENERATED SPELL FOR [Spell Eater] --


function spell0_10661(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(16340,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10661', 12000, 1)
end

function Sorts_10661(pUnit, Event)
local choix_sorts_10661 = math.random(0, 0)
if choix_sorts_10661 == 0 then
pUnit:RegisterEvent('spell0_10661', 1, 1)
end
end

function mob10661_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10661', math.random(1500, 3000), 1)
end

function mob10661_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10661_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10661_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10661, 1, 'mob10661_Action')
RegisterUnitEvent(10661, 2, 'mob10661_Leave')
RegisterUnitEvent(10661, 3, 'mob10661_Kill')
RegisterUnitEvent(10661, 4, 'mob10661_Die')
